package com.hzit.bj01.config;

//@Data

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

//@Getter //get方法
//@Setter //set方法
//@ToString //
//@NoArgsConstructor
//@AllArgsConstructor //所有
@Data
@Component //
@ConfigurationProperties(prefix = "user")
public class MyConfig {


//    @Value("${sex}")
    String sex;

    String name;

    String password;



}
